
"""
1.spider --1.初始化化url 　2.初始化请求对象  3. 解析数据
"""

from scrapy_plus.https.request import Request
from scrapy_plus.item import Item


class Spider():
    # 初始化url
    start_urls = []

    # 初始化请求对象
    def start_requests(self):
        for url in self.start_urls:
            yield Request(url)

    # 解析数据
    def parse(self, response):
        yield Item(response.url)




